package com.ai.module.user.service;

import com.ai.module.websocket.server.WebSocketController;
import com.ai.module.user.domain.req.UserTalkReq;
import com.ai.module.business.domain.vo.UserMessage;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import javax.websocket.Session;
import java.io.IOException;
import java.util.List;

public interface ChatService {

    /**
     * 接受客户端对话
     * @param message
     * @return
     */
    List<String> talk(String message);

    void talkVue(UserTalkReq userTalkReq, HttpServletResponse response) throws IOException;

    List<String> createImage(String desc);

    void downloadImage(String desc, HttpServletResponse response) throws Exception;

    String transferVoice(MultipartFile file);

    String voice2Text(MultipartFile file);

    String voice2English(MultipartFile file);

    void talkMange(String message);

    String downloadImage(String desc);


    void talkWebSocket(UserMessage userMessage, WebSocketController webSocketController, Session session);

    List<String> talkChatPic(UserTalkReq userTalkReq);

}
